const merge = require('webpack-merge')
const common = require('./webpack.common')
const webpack = require('webpack')
module.exports = merge(common, {
  mode: 'development',
  devtool: 'cheap-eval-module-source-map',
  optimization: {
    usedExports: true,
    concatenateModules: true,
    minimize: true
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          'style-loader',
          'css-loader'
        ]
      }
    ]
  },
  devServer: {
    hot: true,
    contentBase: './public/'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin()
  ]
})
